<%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
<%--
  Created by IntelliJ IDEA.
  User: hasee
  Date: 2018/5/20
  Time: 23:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<sql:setDataSource
        var="datasourse"
        driver="com.mysql.jdbc.Driver"
        url="jdbc:mysql://localhost:3306/sctu_javaweb_2018?serverTimezone=UTC"
        user="root"
        password="123456"
        scope="request" />

<%--<sql:query var="i" dataSource="${datasource}">--%>
<%--Select * from t_users--%>
<%--</sql:query>--%>

<sql:query var="i" dataSource="${datasourse}" sql="select * from lab01"/>
</body>
</html>
